package com.lq.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lq.Dao.ShoppingDao;
import com.lq.pojo.Shopping;
import com.lq.service.ShoppingService;

@Service
public class ShoppingServiceImpl implements ShoppingService{
	
	@Autowired
	ShoppingDao shoppingDao;
	
	@Override
	public List<Shopping> selByShoppingAll() {
		List<Shopping> selByShoppingAll =null;
		try {
			selByShoppingAll = shoppingDao.selByShoppingAll();
			System.out.println("商品数量:"+selByShoppingAll.size());
		} catch (Exception e) {
			e.printStackTrace();
		}
		return selByShoppingAll;
	}



	
}
